﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.ComponentModel;
//using System.ComponentModel.DataAnnotations;
//using System.Text;

//namespace Db8.Data
//{
//    [Table("UserActivities")]
//    public class UserActivity
//    {
//        public UserActivity()
//        {
//        }

//        /// <summary>
//        /// Create a new UserActivity object with all fields BUT: Url, Before, After
//        /// </summary>
//        /// <param name="user"></param>
//        /// <param name="activityName"></param>
//        /// <param name="entity"></param>
//        /// <param name="objectId"></param>
//        public UserActivity(User user, string activityName, string entity, string objectId)
//        {
//            UserId = user.UserId;
//            ActivityDt = DateTime.UtcNow;
//            ActivityName = activityName;
//            Entity = entity;
//            ObjectId = objectId;
//        }

//        [Key]
//        public long ActivityId { get; set; }

//        [Required]
//        [ForeignKey("User")]
//        [Column("UserId")]
//        public long UserId { get; set; }
//        public virtual User User { get; set; }

//        [Required]
//        public DateTime ActivityDt { get; set; }

//        [Required]
//        [StringLength(45, ErrorMessage = "Activity name must be 45 characters or fewer")]
//        public string ActivityName { get; set; }

//        [StringLength(45, ErrorMessage = "Entity name must be 45 characters or fewer")]
//        public string Entity { get; set; }

//        [StringLength(45, ErrorMessage = "ObjectId name must be 45 characters or fewer")]
//        public string ObjectId { get; set; }

//        [StringLength(255, ErrorMessage = "Url name must be 255 characters or fewer")]
//        public string Url { get; set; }

//        [StringLength(3000, ErrorMessage = "Activity name must be 3000 characters or fewer")]
//        public string Before { get; set; }

//        [Required]
//        [StringLength(3000, ErrorMessage = "After name must be 3000 characters or fewer")]
//        public string After { get; set; }

//    }
//}
